package com.hxm.appGenealogy.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.hxm.appGenealogy.config.Constant;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 家族实体类;
 */
@Data
@TableName("family_id_no")
public class Family {
    @TableId( value = "id",type = IdType.AUTO)
    private Long id;

    //创始人;
    private Long creatorPeopleId;

    @DateTimeFormat(pattern = Constant.timeFormat)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GTM+8")
    private Date time;

    //已经使用了的空间;
    private Double useSpace;
    //可以使用的空间;
    private Double usableSpace;
    @TableField("top_people_Id")
    private Long topPeopleId;
  /*  // 0是没有迁移1是已经迁移
    private Integer isMigration;*/
}
